﻿using Approval.API.Applcation.Command.AcceptanceRelationCommand;
using Approval.API.Applcation.Command.HCTRelationCommand;
using Approval.API.Applcation.Command.PayRelationCommand;
using Approval.API.Applcation.Command.PurchaseRelationCommand;
using Approval.API.Applcation.Command.RLZRelationCommand;
using Approval.Domain;
using AutoMapper;

namespace Approval.API.Extensions
{
    public class ApprovalProfile:Profile
    {
        public ApprovalProfile()
        {
            CreateMap<HCTRelationAppprovalCommand, HCTRelation>().ReverseMap();
            CreateMap<RLZRelationApprovalCommand, RLZRelation>().ReverseMap();
            CreateMap<PayRelationApprovalCommand, PayRelation>().ReverseMap();
            CreateMap<PurchaseRelationApprovalCommand, PurchaseRelation>().ReverseMap();
            CreateMap<AcceptanceRelationApprovalCommand, AcceptanceRelation>().ReverseMap();
        }
    }
}
